<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="${contextPath}/scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<title>帐龄分析表</title>
	<link href="${contextPath}/styles/default.css" rel="stylesheet" type="text/css" />
	<script src="${contextPath}/scripts/jquery/jquery-1.8.3.min.js" type="text/javascript"></script>
	<script src="${contextPath}/scripts/scriptvalidator.js" type="text/javascript"></script>
	<script src="${contextPath}/scripts/common.js" type="text/javascript"></script>
</head>
<body>
 

<div class="navigation">
	    <span><a href="javascript:window.history.back();"><img src="${contextPath}/images/back_nav_btn.png" /></a>
	    <a href="javascript:window.history.back();">返回</a>
	    <a href="javascript:window.history.forward();"><img src="${contextPath}/images/go_nav_btn.png" /></a>
	     <a href="javascript:window.history.forward();">前进</a>
	    <a href="javascript:window.location.reload();"><img src="${contextPath}/images/refresh_nav_btn.png" /></a>
	     <a href="javascript:window.location.reload();">刷新</a>
</span>报表管理&gt;&gt;库存信息汇总表 </div>
<div class="xt_main_right_center">
<form name="searchForm" method="post" id="submitForm" onSubmit="return checkSubmit();"  enctype="multipart/form-data"  action="<s:property value='contextPath'/>/jr/outputMonths_Departure_XLS.do">
    <input type="hidden" value="<%=java.net.URLEncoder.encode("库存信息汇总表","utf-8")%>" name="documentName" />
  <!-- -
  <input type="hidden" name="fillMap" value="/jr/Departure.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/Departure1.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/Departure2.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/Departure3.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/Departure4.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/Departure5.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/Departure6.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/Departure7.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/Departure8.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/Departure9.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/Departure10.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/Departure11.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/Departure12.jasper"/>
  <input type="hidden" name="fillMap" value="/jr/DepartureResult.jasper"/>
   -->
  <table width="100%" border="0">
    <tr>
      <td class="left-td-width-bg" align="right">金融机构：</td>
      <td class="right-td-width-bg-left">
       <input type="hidden" name="para.F_NAME" id="fianlName">
      <select dataType="Require" msg="请选择金融机构"  name="para.FINANCIAL" id="select" onchange="getSelectedText()">
           <option value="">请选择</option>
     		<s:iterator value="financials" status="i" id="b">
     		
			   <option value="${b.id }">${b.name }</option>
			</s:iterator>
      </select></td>
      <td class="left-td-width-bg" align="right">日期：</td>
      <td class="right-td-width-bg-left"><table width="100%" border="0">
               <tr>
          <td class="right-td-width-bg-left"> 
     		 <input dataType="Require" msg="请选择开始日期" id="dateBeg" class="Wdate" onBlur="duibi()" type="text" name="para.STATER_MONTH" winth="200px" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true" value="<s:date name="treaty2.startDate" format="yyyy-MM-dd"/>"/>
     	   </td>
          <td class="left-td-width-bg" >至</td>
           <td class="right-td-width-bg-left"> 
     		 <input dataType="Require" msg="请选择结束日期"  id="dateBeg" class="Wdate" onBlur="duibi()" type="text" name="para.END_MONTH" winth="200px" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true" value="<s:date name="treaty2.startDate" format="yyyy-MM-dd"/>"/>
     	   </td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td colspan="4" align="right"><input type="submit" name="button" id="button" value="生成报表"></td>
      </tr>
  </table>
	 
</form> 
</div><br/><br/>
		<div><jsp:include page="/include/footer.inc"></jsp:include></div>
<script  language='javascript'>
function getSelectedText(){
	var obj=document.getElementById("select");
	var fianlName =document.getElementById("fianlName");
	for(var i=0;i<obj.length;i++){
	   if(obj[i].selected==true){
		   fianlName.value = obj[i].innerText;
	   }
	}
	}
function checkSubmit(){
 	var staffForm = document.searchForm;
	if(!Validator.Validate(staffForm, 3)){
		return false;
	}
	return true;
 }
  
</script>
 
</body>
</html>